﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using TiPort.TiEntityObjects;
using TI;
using TiEntityObject.Common;
using TiEntityObject.Protocol;

namespace MergeTI.TiEntityObjects.Protocol
{
    public class ProtocolApplicationParticipant 
    {
        public string JournalNumber { get; set; }

    
        [XmlElement("participantType")]
        public string ParticipantType { get; set; }

        [XmlElement("inn")]
        public string Inn { get; set; }

        [XmlElement("kpp")]
        public string Kpp { get; set; }

        [XmlElement("organizationForm")]
        public string organizationForm { get; set; }

        [XmlElement("idNumber")]
        public string IdNumber { get; set; }

        [XmlElement("idNumberExtension")]
        public string IdNumberExtension { get; set; }

        [XmlElement("organizationName")]
        public string OrganizationName { get; set; }

       
        [XmlElement("factualAddress")]
        public string FactualAddress { get; set; }

        [XmlElement("postAddress")]
        public string PostAddress { get; set; }

        [XmlElement("additionalInfo")]
        public string AdditionalInfo { get; set; }

        [XmlElement("country")]
        [LinkObjectAttribute(ChildFieldName = "countryCode", IsPartialObject = false, ParentFieldName = "CountryID")]
        public Country Country { get; set; }

        [XmlElement("contactInfo")]
        [LinkObjectAttribute(ChildFieldName = "OwnerKey", IsPartialObject = true, ParentFieldName = "ContactInfoOwnerKey")]
        public ProtocolContactInfo ContactInfo { get; set; }        

        public string CountryID { get; set; }

        

     

    }
}
